package com.poker.entity;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Activity
 * @Description TODO
 * @Author duyuanyuan
 * @Date 2019/3/1215:11
 * @Version 1.0
 **/
@Entity
@Data
@Table(name="activity")
public class Activity implements Serializable {

    private static final long serialVersionUID = 5806979270613927977L;
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    private String id;

    @Column(name = "activity_name")
    private String activityName;

    @Column(name = "activity_title")
    private String activityTitle;

    @Column(name="activity_introduce")
    private String activityIntroduce;

    @Column(name="activity_integral")
    private String activityIntegral;

    @Column(name="activity_institution")
    private String activityInstitution;

    @Column(name = "activity_istop")
    private Boolean isTop;

    @Column(name = "activity_img")
    private String activityImg;

    @Column(name = "activity_points")
    private String activityPoints;

    @Column(name = "activity_address")
    private String activityAddress;

    @Column(name = "activity_status")
    private Boolean activityStatus;

    @Column(name = "begin_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;

    @Column(name="create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Column(name = "end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @Transient
    private String content;

    @Column(name = "status")
    private Integer status; // 1、报名中，2、进行中，3、已结束

    @Column(name = "classify")
    private Integer classify; // 0、德州，1、双升

}
